import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:settings',
      order: 2000,
      title: '系统管理',
    },
    name: 'System',
    path: '/system',
    children: [
      {
        meta: {
          title: '用户管理',
        },
        name: 'UserManagement',
        path: '/system/user',
        component: () => import('#/views/demos/antd/index.vue'),
      },
      {
        meta: {
          title: '角色管理',
        },
        name: 'RoleManagement',
        path: '/system/role',
        component: () => import('#/views/demos/antd/index.vue'),
      },
      {
        meta: {
          title: '菜单管理',
        },
        name: 'MenuManagement',
        path: '/system/menu',
        component: () => import('#/views/demos/antd/index.vue'),
      },
      {
        meta: {
          title: '部门管理',
        },
        name: 'DepartmentManagement',
        path: '/system/department',
        component: () => import('#/views/demos/antd/index.vue'),
      },
    ],
  },
];

export default routes;
